Part Number Hot Search : 
74F132PC SMCJ48 LA7629 GTS6923 00222 SMCJ48 CGRC305 F81A75
Product Description
Full Text Search
 

To Download ST628X-EMU2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 ST628X-EMU2
REAL TIME EMULATION DEVELOPMENT TOOLS FOR ST628x MCUs
HARDWARE FEATURES s Supports ST62 and ST63 family s Real time emulation s 32 KBytes of emulation memory s Breakpoint on a single address or on an address area s Break events can be defined on Program Space, Data space mixed with up to 4 external signals s 2 full programmable output for synchronisation s Read/Write registers on the fly (without wait state) s Selective trace in Range or Start/Stop s Break on Stack Overflow s 1K of real trace memory s Tracing of up to 32 bits including 4 external signals SOFTWARE FEATURES s Symbolic debugger at source level s On-line assembler/disassembler s Log files capable of storing any displayed screen s Command files able to execute a set of debugger commands
August 1998
This is advance information from STMicroelectronics. Details are subject to change without notice.
1/19
5
Table of Contents
ST628X-EMU2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1 DELIVERY CHECK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 2 ST6 HDS2 NEW MAINFRAME EMULATOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1 MAIN BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.2 ST6 HDS2 MAIN BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.2.1 External output: OUT1 and OUT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2.2 Data acquisition signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2.3 LEDs RUN, STOP, WAIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 INSTALLING AN ST6 EMU2 DEVELOPMENT TOOL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.4 INSTALLING A DEDICATION BOARD IN AN ST6 HDS2 . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.5 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB097) . . . . . . . . . . . . . . . . . . . . . . . . 8 2.6 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB174) . . . . . . . . . . . . . . . . . . . . . . . . 9 3 ST6 MAINFRAME EMULATOR (FIRST GENERATION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 CLZ80 BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 3.2 GPFM/3 BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 3.3 INTERFACE BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 3.4 INSTALLING AN ST6 HDS1 DEVELOPMENT TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.5 INSTALLING A DEDICATION BOARD IN AN HDS1 DEVELOPMENT TOOL . . . . . . . . . 11 4 DEDICATION BOARD (DBE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 4.1 VOLTAGE FUNCTIONING RANGE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 JUMPER DESCRIPTION ON DEDICATION BOARD . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.3 CHOOSING THE EMULATED DEVICE: W2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.1 Clock Source Selection: W3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.2 Reset delay duration: W1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.4 INSTALLING THE PROBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 4.5 INSTALLING THE PROBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 4.6 PROBE: INSTALLING THE FERRITE COIL FOR EMC COMPATIBILITY . . . . . . . . . . . . 14 4.7 EMULATED PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.7.1 Program Rom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 4.7.2 Data Space Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.7.3 Timer 1, Timer 2, SPI, Watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.7.4 Analog to Digital Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.7.5 Port A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 4.7.6 Port B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 4.7.7 32 Khz Oscillator (Real Time Clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.7.8 LCD DRIVER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19. . .16 .
2/19
6
Table of Contents
5 TROUBLESHOOTING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 5.1 AT POWER UP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 5.2 DURING EMULATION: PROBLEM WITH PROGRAM COUNTER . . . . . . . . . . . . . . . . . 17 5.3 RESET EMULTATION IN REAL TIME. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.4 DISCREPANCIES BETWEEN EMULATOR AND ROM OR EPROM DEVICE. . . . . . . . . 17 5.5 AVOID THE MOST FREQUENT PROBLEMS WHEN PROGRAMMING ST6 MICROS!. 18 5.5.1 Execution of Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.5.2 Execution of WAIT and STOP instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3/19
7
ST628X-EMU2 - DELIVERY CHECK
1 DELIVERY CHECK
This development tool is able to emulate all components belonging to the ST628X family. The choice of emulated ROM Device is made by properly setting the configuration on the dedication board, and by connecting the appropriate PROBE on the dedication board through the flat cables. When receiving a whole ST628X development tool or a ST628X-DBE please refer to the "PRODUCT DELIVERY" to check the content of the package. Instructions for use - Warning This development tool conforms with the EN55022 emissions standard for ITE, and with generic 50082-1 immunity standards. Then, it complies with the 89/336/EEC directive. The product is a A Class apparatus. In a residential environment this device may cause radioelectrical disturbance which may require that the user adopts appropriate precautions.
4/19
8
ST628X-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2 ST6 HDS2 NEW MAINFRAME EMULATOR
The new ST6 HDS2 mainframe (with MB097 main Board) has been designed to replace the HDS1 version. The main modifications are: - Communication transfer rate: it is now much faster thanks to the use of parallel port. - Dimension and weight: the old 3 boards, basic part of the system, have been redesigned in one board. - The cost of the overall system has been well reduced. In the second version of ST6 HDS2, (metal box with MB174 main Board) modified for CEM conformity, these new features have been introduced: - Read/ Write registers on the fly during execution of program without any wait state. - Selective record of bus in logical analyser in Range or Start/Stop mode. - Output OUT1 and OUT2 for synchronisation of an external equipment, programmable in the same way as Selective trace, in Range or Start/ Stop mode. - Stack overflow: a break is automatically generated (by default) in case of stack overflow. - Break execution: in this new version, the program stops before the execution of the fetch. These main frame consist of a basic part, common to all ST6 devices, and one ST62 or ST63 sub family dedicated board depending on the specific device to emulate. This new emulator is full compatible with existing dedicated boards, excepting ST631XX-DBE which have been designed in 2 boards. Only the dedicated board has to be changed to emulate a new device within the ST62/ST63 sub families. The use of parallel port allows a very faster communication transfer rate. The symbolic debugger, software part of the real time emulation tool, can be run on a PC, and is common to all ST62 and ST63 devices. The debugger uses a windowed menu driven interface, and enables the user to set the configuration of the emulator.
Figure 1. Hardware Development System Emulator
HARDWARE DEVELOPMENT SYSTEM EMULATOR (HDS2)
Parallel Port connection
Dedication Board
Power
OUT-1 OUT-2
Stop Wait Run
4321
Triggers
ST6 HDS2 EMULATOR (.EMU2)
ST6 probe
5/19
9
ST628X-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2.1 MAIN BOARD The Main board controls the emulator thanks to a ST9 central processing unit which executes commands coming from host computer through the parallel line. The board contains all emulation resources, the core of the ST6, the Program ROM emulation, the break point logic, the trace memory, the automaton and all necessary logic for a real time emulation. Two connectors, J1 and J2, are used to exchange signals with the dedication board. The amount of program memory in the main board is factory set at 32k, in fact the size of the memory depends on the dedication board, which contains the Program Rom Pagination Register (PRPR) if it exists (no PRPR for memory size lower than 4k). No configuration jumpers are required. 2.2 ST6 HDS2 MAIN BOARD On the rear panel there is: - a power plug to connect power: 5 Volts 3 Amp min. (The delivered power is 100 volts to 240 volts input and 5 Amp output). - a power switch. - a parallel connector for an IBM PC(TM) compatible. On front panel: - a led "POWER ON" signal. - OUT 1 and OUT 2 signals which can be used for synchronizing an external equipment. - 2 leds indicating when the ST6 core is in "STOP" or "WAIT" mode. - a 16 pin connector for data acquisition signals. The explanation of these signals is done in the debugger manual. 2.2.1 External output: OUT1 and OUT2 For debugging hardware it is very useful to have synchronization signals. The goal of the outputs 1 and 2 is to offer this feature to the user. They can be programmed differently whether the debugger used is the DOS debugger ST6NDB or the Source Level Debugger WGDB6, as explained in the two following paragraph. They are full programmable with WGDB6. 2.2.2 Data acquisition signals In a same way as are recorded Buses, Flags, Bank registers in the trace memory, the ST6 HDS2 offers the possibility to record 4 external signals. These signals must be connected on the pin
Output OUT1 and OUT2 under ST6NDB When using old DOS Version of debugger ST6NDB: This feature is programmable thanks to Hardware Breakpoint Menu. The breakpoint MENU allows to define breaking events. These events will generate an actual breakpoint only if break enable is ON. When break is off, these events are existing in the development tool. In the HDS2 emulator version up to 4.3, the signals OUT1 and OUT2 are connected to these internal breaking events. Therefore these signals can be used to synchronize an external device while running (breakpoint off). Output OUT1 and OUT2 under WGDB6 When using WGDB6 new Version of debugger at source level under WindowsTM: This feature is full programmable thanks to Hardware Events/Trigger Menu. Output OUT1 and OUT2 can be programmed in two ways: - Events for synchronisation: it allows to the user to preset pulses synchronisation for an external equipment. The events can be defined by addresses or by range of addresses. - Events for Timing Measure: it allows to the user to measure time elapsed during a subroutine for example. In this case, output OUT2 is SET on a user defined address, and RESET on an other one, OUT1 is the ST6 clock cycle gated by OUT2. These 2 functioning modes are clearly displayed on screen.
1,3,5,7 of the Analyser probe connector on the front panel of the HDS2, as shown below. A flat cable with probe tip is delivered with the emulator. These inputs are CMOS compatible at 5 Volts .
6/19
10
ST628X-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
VCC
Caution: +5V EMU
GND
When ST6 core is in WAIT mode, led WAIT is ON. When ST6 core is in STOP mode, both leds STOP and WAIT are ON. 2.3 INSTALLING AN ST6 EMU2 DEVELOPMENT TOOL 1 - When receiving a whole development tool, the dedication board is delivered inside the mainframe. - You have just to: - connect the power supply to the mains(100 to 240 volts). - connect the output (5Volts) of power supply on the DIN connector of the rear panel - connect the parallel cable between the parallel connector and the host computer. For installing the probe, please refer to the appropriate item in the Dedication Board chapter. 2.4 INSTALLING A DEDICATION BOARD IN AN ST6 HDS2 If there is already a dedication board in the development tool, you have simply to: - unscrew the 2 screws on each side of the dedication board, and press outward on the release buttons to extract the board. Then insert the new dedication board in the guide rods and push it hardly in the backplane, and: - screw the 2 screws on each side of the dedication board. For installing the probe, please refer to the chapter "Installing the probe".
AL3
AL2 AL1 AL0
2.2.3 LEDs RUN, STOP, WAIT Three leds have been added to indicate to the user the state of the core or of the development tool during emulation. First at power up, the red led is ON and becomes OFF after a few time. It lights one short time during connection establishment between ST6 HDS2 emulator and host computer. After that, the Run led must be OFF. If the LED RUN remains ON after power up, it will cause a default in initialisation of emulator, this default can be caused by: - The emulation is in Reset: if the emulator is connected on a target application, this application must have been powered before. - There is no clock: see chapter about clock source selection. After a correct initialisation: When user's program is running (in real time), led RUN is on.
7/19
11
ST628X-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2.5 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB097)
VR02091A
8/19
12
ST628X-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2.6 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB174)
VR02091U
9/19
13
ST628X-EMU2 - ST6 MAINFRAME EMULATOR (FIRST GENERATION)
3 ST6 MAINFRAME EMULATOR (FIRST GENERATION)
The ST6 mainframe emulator contains positions for 5 boards : - CLZ80 board must be inserted on the first (bottom) position - GPFM/3 board must be on second position - interface N (DB014) must be inserted on third position - dedication board ST638X (MB167) inserted in one of the two top position On the rear panel there is : - a main-power selector to select 110 volts or 220 volts. - a power plug - a power switch On front panel : - the RS232 connector to link the emulator with an IBM PC - EXT-SIG connector that allows you to choose between 3 groups of 4 signals to be memorize on trace memory. These signals are independent from the probe data acquisition signals. The explanation of these signals is done in the debugger manual - Z80 reset push button - ST6 INT push-button 3.1 CLZ80 BOARD The CLZ80 board controls the mainframe emulator and it is linked to an IBM PC through an RS232 line. On this board only 2 connectors are used : - J5 connected to the front panel RS232 25 pin connector - J4 connected to the front panel Z80-RESET push-button 3.2 GPFM/3 BOARD GPFM/3 board contains the emulation resources : Program ROM emulation, break point, trace memory. Two connectors, J3 and J4, are used to exchange signals with the interface board. When emulating ST62XX or ST63XX, the interface board is an N-WELL interface board. The two connectors are used. For emulating components of other families, the interface board can be a P-WELL interface board: in this case only one connector is used, the jumpers of W2 must be plugged. JUMPERS SETTING for ST62XX and ST63XX emulation: W1: All jumpers must be removed. W2 : One jumper only must be set to link pin 1 to pin 16. CONNECTORS : J3 and J4 : Used to link this board with the N-WELL interface board. J5 : Used to connect the data acquisition probe.
10/19
14
ST628X-EMU2 - ST6 MAINFRAME EMULATOR (FIRST GENERATION)
3.3 INTERFACE BOARD The interface board emulates the CPU-core. JUMPERS SETTINGS: S1: - not used in emulation mode - allows the definition of the type of EPROM (27256/27128) used in stand-alone (without CLZ80 and GPFM/3 boards) mode S2, S3: size of emulation program ROM The position reference names depend on the version of the board. For S2 they can be identified as 0 and 1 or OLD and NEW on the board. For S3 it can be 0 and 1 or 4K and 8K.
S2 0 or OLD 0 or OLD 1 or NEW 1 or NEW S3 0 or 4K 1 or 8K 0 or 4K 1 or 8K Size 4K 8K 16K 32K normal setting not supported Comment
- remove the 2 screws on the rear panel of the main frame - lift the lid on the side of the rear panel - pull the lid from the rear panel, it dissociates it from the front panel - remove the lid, pay attention to the wire for the ground connection Verify that all boards are correctly inserted in the backplane of the mainframe in the right order: - CLZ80 board must be inserted on the first (bottom) position - GPFM/3 board must be on second position - Interface N (DB014) must be inserted on third position - The two top positions are intended to receive one or a couple of dedication boards in order to emulate one family of components: in this case, only the new DBE board must be in one of the two top positions. For installing the probe, please refer to the appropriate chapter in the Dedication Board part. After installation of a probe, the flat cables must be parallel. 3.5 INSTALLING A DEDICATION BOARD IN AN HDS1 DEVELOPMENT TOOL When receiving only a dedication board, this board must be installed as described below. Open the main frame by removing the lid: - remove the 2 screws on the rear panel of the main frame - lift the lid on the side of the rear panel - pull the lid from the rear panel, it dissociates it from the front panel - remove the lid, pay attention to the wire for the ground connection Then remove the dedication board or the two dedication board which are plugged in the two top position of the backplane. After that, plug the new dedication board in one of the two top positions of the backplane. For installing the probe, please refer to the appropriate item in the Dedication Board chapter.
The purpose of this jumper is to allow the emulator to check the amount of emulation program ROM that is used. TEST/NO TEST: must be in NO TEST position CONNECTORS: J1 and J4 to link this board to GPFM/3 board. J2: receives signals from J1-EXT SIG. connector situated on the front panel of the ST6 emulator. J3: is connected to ST6-RESET, ST6-INT pushbuttons, STOP-LED and WAIT-LED situated on the front panel of the ST6 emulator. 3.4 INSTALLING AN ST6 HDS1 DEVELOPMENT TOOL When receiving a whole development tool, the dedication board is delivered inside the mainframe, it is plugged in one of the two top position in the backplane. - First of all, it is mandatory to verify the mainframe:
11/19
15
ST628X-EMU2 - DEDICATION BOARD (DBE)
4 DEDICATION BOARD (DBE)
This board contains the specific functions for ST628X emulation: - Liquid Crystal Display Driver for dot matrix of 48x16 or 56x8 - 128 bytes LCD RAM - 192 bytes DATA RAM - 128 bytes EEPROM (Byte mode and parallel mode) - 8 bit timer with 7 bit prescaler: Timer 1 - 8 bit reload timer with 7 bit prescaler: Auto Reload Timer - Watchdog - 8 bit Analog to Digital Converter - 8 bit synchronous Serial Peripheral Interface (SPI) - Port A: 5 Bits - Port B: 8 Bits - Port C: 8 Bits - 32 Khz oscillator - External non Maskable Interrupt - Program Rom Pagination Registers - Data Rom Window Registers - Data RAM/EEPROM and LCD RAM Pagination Registers On the board, a white dot indicates the position 1 for all jumpers and components. Note for the VCC pin: When the input power pin VCC is connected, this input is used as a reference voltage by the emulator.(please refer to the 4-1 chapter) No power is given or taken at this pin by the emulator. Notes on write-only registers: Several Data Space registers of the emulated ROM device are write-only, however, to offer more flexibility to the user, they are readable when commands such as "watching register" are used. 4.1 VOLTAGE FUNCTIONING RANGE This board has been designed to emulate the ROM device in the range of 3 to 6 Volts. When the input power VCC pin is connected, this input is used as a reference voltage by the emulator. This reference voltage is amplified thanks to an operational amplifier and an emitter follower for powering the output buffers, and for giving the high reference voltage to the ADC. Then all the outputs of the peripherals are fully compatible at CMOS level with an application which is powered in the range from 3 to 6 Volts. When this input is not connected, all buffers are powered with 5 volts. No power is given nor taken at this pin by the emulator. 4.2 JUMPER DESCRIPTION ON DEDICATION BOARD Jumpers on the board are used to select the amount of MEMORY, the emulated PERIPHERALS, and metal MASK OPTION of the ROM device. This chapter explains how to select these features. The difference between the ROM devices belonging to the ST628X family are as follow: - The ST6280 is the most powerful device, it contains all peripherals, and all possible resources are bounded on pins of the QFP 100 package. - The ST6285 is a subset of ST6280: EEPROM, Real Time Clock and some LCD Segments are not available due to the smaller package QFP 80.
12/19
16
ST628X-EMU2 - DEDICATION BOARD (DBE)
4.3 CHOOSING THE EMULATED DEVICE: W2 This board has been designed to emulate ST628X components: the known devices at this date are ST6280 and ST6285. To select this choice, only one jumper must be set on W2 in front of the name of the device, clearly printed on the board. For the emulator, when a peripheral is not used, for example AR Timer for ST6285, registers of this peripheral are at zero value, and they cannot be written. For more details, please refer to the documentation of the ROM device. 4.3.1 Clock Source Selection: W3 The system CLOCK can be chosen between internal on board oscillator and clock issued from the probe. This jumper setting is clearly printed on board, with INT for INTERNAL clock and EXT for clock issued from the probe. If the jumper is connected between: 1-2 In this case the clock of the probe is selected 2-3 The internal clock at 8 Mhz is selected. In this case the internal clock is made thanks to an oscillator with a quartz, this quartz XT1, can be exchanged if desired by the user. Note for CLOCK "issued from the probe": If the user uses a probe made by SGS-THOMSON, this probe is able to send to the clock to the dedication board in two ways: - a clock made by the on board oscillator on the probe - a clock directly issued from the application For more details, please refer to the documentation delivered with the probe. 4.3.2 Reset delay duration: W1 For as long as the reset pin is kept at the low level, the processor remains in the reset state. After the pin reset has been released, a counter provides a delay between the detection of the reset high level and the release of the MCU reset: a jumper on W1 permits to select the duration of this delay. The standard delay is 2048 oscillator cycles: for this delay, the jumper must be in front of the number 2, printed on board. For delay of 4096, 8192, 16384 or 32768 cycles, the jumper must be in front of respectively 4, 8, 16, or 32 clearly printed on the board.
4.4 INSTALLING THE PROBE Before installing the probe, the user must choose the device to be emulated. The available probes for ST628X at this date are: - ST6280-P/QFP for emulating ST6280 (QFP100 probe) - ST6285-P/QFP for emulating ST6285 (QFP 80 probe) These probes must be separately ordered by the customer. Then, - Connect the flat cables on the appropriate connectors. If the board is inside the main frame, unscrew the 2 screws on each side of the dedication board, and press outward on the release buttons to extract the board. For installing one probe, it is mandatory to follow these instructions: - Plug the dedication board on a plane surface (to insert easily the cables) - Plug the longest flat cable (delivered with probe) on J1(or S1) of Dedication Board - Plug the second flat cable on J4 (or S4) of Dedication Board - Plug the third flat cable on J3 (or S3) of Dedication Board - Plug the last flat cable on J2 (or S2) of Dedication Board a bump on connectors impose to set them correctly. After that, in the same way, taking in account that flat cable must rest parallel: - Take the flat cable connected on J1 (or S1) of dedication board and plug it into J1 (or S1) on the probe. - Take the second flat cable connected on J4 (or S4) of Dedication Board and plug it into J4 (or S4) on the probe. - Take the third flat cable on J2 (or S2) of Dedication Board and plug it into J2 (or S2) on the probe. - Take the last flat cable on J2 (or S2) of Dedication Board and plug it into J2 (or S2) on the probe. After installation of a probe, the 4 flat cables must be parallel. When a probe is used, it must be connected to an application or powered through VCC pin, to give power to the on board oscillator. If the on board oscillator is never used, IC1 can be removed by the user.
13/19
17
ST628X-EMU2 - DEDICATION BOARD (DBE)
4.5 INSTALLING THE PROBE Before installing the probe, the user must choose the device to be emulated. Then, - Connect the 4 flat cables between Dedication Board and Probe. The connectors are J1, J2, J3 and J4 on the Dedication Board, they must be connected on respectively, S1, S2, S3 and S4 on the probe. To prevent mistakes, a bump on connectors impose to set them correctly. After installation of a probe, the 4 flat cables must be parallel. Furthermore, we can verify that the pin 1 for each connector, which is clearly printed on both boards, is on the same side as the red line on the flat cables. To install these QFP probes, please refer to the documentation delivered with them. installation of a probe, the 4 flat cables must be parallel. When external clock is chosen on dedication board, the clock is coming from this probe, and can be selected in two ways: - When jumper is near input (oscin): the clock is coming from OSCIN input of the probe - When jumper is near quartz: the clock is coming from the on board oscillator using a crystal on application. But this solution is not recommended because the parasitic capacitors between probe up to the application are critical.
WARNING on probe oscillator: When the probe is used, it must be connected to an application or powered through VCC pin, to give power to the on board oscillator. If the on board oscillator is never used, IC1 can be removed by the user. WARNING: to respect EMC compliance, the 2 Ferrite for flat cable delivered with the development tool can be put one on J1 and J2 flat cable, the other one on J2 and J3. 4.6 PROBE: INSTALLING THE FERRITE COIL FOR EMC COMPATIBILITY To be conform to the EMC directive, particularly in emission, the delivered ferrite coil must be placed as follow: 1) Place each part on each side of the flat cables 2) Place the metal clip to fix them together 1
2 2
ST6 probe
1
14/19
18
ST628X-EMU2 - DEDICATION BOARD (DBE)
4.7 EMULATED PERIPHERALS 4.7.1 Program Rom For the ST628X devices, program memory size is valid up to 8 k Bytes: it means that Bit 0 and 1 of Program Rom Pagination Register (PRPR) are available. To offer more flexibility to the user, when debugging software, up to 32 k bytes of program ROM are available, it means that 4 bit are available in the PRPR when emulating with the development tool. 4.7.2 Data Space Memory The memory available in range 0 to 3F in data space, is accessed through the Data Ram/Eeprom Banking Register: Bit 0 if set selects the first EEPROM bank Bit 1 if set selects the second EEPROM bank Bit 3 if set selects the first RAM bank Bit 4 if set selects the second RAM bank. Bit 5 if set selects the first LCD RAM bank. Bit 6 if set selects the second LCD bank. Care must be taken that only one of these 6 bit must be set at a time, for more details see Data Sheet of the corresponding ROM device. 4.7.2.1 EEPROM ST6280: For this device, there is two bank EEPROM of 64 Bytes, it means Bit 0 and 1 of Data Ram/Eeprom Banking Register are available. ST6285: For this device, there is no EEPROM, it means Bit 0 and 1 of Data Ram/Eeprom Banking Register are at zero value and are not able to be written. 4.7.2.2 RAM For this device, there is two bank RAM of 64 Bytes, it means Bit 3 and 4 of Data Ram/Eeprom Banking Register are available.
4.7.2.3 LCD RAM For this device, there is two bank RAM of 64 Bytes dedicated to LCD, it means Bit 5 and 6 of Data Ram/Eeprom Banking Register are available. 4.7.3 Timer 1, Timer 2, SPI, Watchdog Internal Clock (CK/12) for these devices are voluntarily validated only during emulation, it provides to see the evolving values of them. Therefore pay attention that in NEXT mode the values of counters can be slightly different of a real time session because of setting ON and OFF emulation. For using these peripherals, please, refer to data sheet of the corresponding ROM DEVICE. 4.7.4 Analog to Digital Converter This peripheral is available on all bit of B port and Bit 4 to 7 on C port. The ADC input can be connected at one of these 12 inputs, the 8 of port B and the 4 of port B, by properly programming the registers of these ports (one at a time). If more than one ADC input are selected, they will be short circuited each other's, in an other way, this feature can be used to multiplex analog values. The analog to Digital Converter converts the input value in about 50S at 8 Mhz of Xtal clock. Clock conversion is always present, it means that a data conversion is always accomplished after writing a start conversion even if it is made in NEXT mode of emulation. It allows to the user to convert analog input step by step. Note on ADC voltage reference: The high voltage reference for the ADC is the applied voltage on the pin VCC internally buffered in the board. The low voltage reference is a line directly connected from the ADC GROUND to the PROBE GROUND. Then to have a conversion result of 0FFH, the voltage at the analog input must be equal to the voltage of the VCC pin.
15/19
19
ST628X-EMU2 - DEDICATION BOARD (DBE)
4.7.5 Port A The functioning mode of each bit of this 8 bits port is selected by properly programming the three associated registers: Data Register (DRA), Data Direction Register (DDRA), and Option Register (ORA) as follow.
DDR OPR 0 0 0 1 1 X 1 0 1 0 DR 1 0 0 X X I/O Mode Input without pullup, interrupt disabled Input with pullup, interrupt enabled Input with pullup, interrupt disabled Push Pull Output Open Drain NMOS output
Beware of mixing input and output modes in the same port, in this case, do not use SET or RES instructions on Data Registers: When a port bit is in input mode, the data read is the state of the pin of the device (or the probe); when a port bit is in output mode, the data read is the data register, so when using a read/modify/ write instruction, a bit port mode can be changed from input mode to analog input mode unintentionally! For more details about this peripheral, please, refer to Data Sheet of the corresponding ROM Device. 4.7.6 Port B The functioning mode of each bit of this 8 bits port is selected by properly programming the three associated registers: Data Register (DRA), Data Direction Register (DDRA), and Option Register (ORA) as follow. Note that only the four bits PB0 to PB3 can be ADC inputs.
DDR OPR 0 0 0 0 1 1 0 1 0 1 1 0 DR 1 0 0 1 X X I/O Mode Input without pullup, interrupt disabled Input with pullup, interrupt enabled Input with pullup, interrupt disabled Analog Input Push Pull Output Open Drain NMOS output
Beware of mixing input and output modes in the same port, in this case do not use SET or RES instructions on Data Registers: When a port bit is in input mode, the data read is the state of the pin of the device (or the probe); when a port bit is in output mode, the data read is the data register, so when using a read/modify/ write instruction, a bit port mode can be changed from input mode to analog input mode unintentionally!. For more details about this peripheral, please, refer to Data Sheet of the corresponding ROM Device. 4.7.7 32 Khz Oscillator (Real Time Clock) Because the 32 khz clock can be used by LCD, the clock of RTC is always validated. When used as an Interrupt source, it is mandatory to use this peripheral in real time mode with the development tool. For more details about this peripheral, please, refer to Data Sheet of the corresponding ROM Device. 4.7.8 LCD DRIVER The LCD driver is directly emulated with a ST6280 microcomputer. The ST6280 reads permanently an image of the LCD area in RAM, and writes it in its own corresponding AREA. A delay of a few milliseconds, between written values, and effective display on LCD is not important for an information which is for human eyes. For more details about this peripheral, please, refer to Data Sheet of the corresponding ROM Device.
16/19
20
ST628X-EMU2 - TROUBLESHOOTING
5 TROUBLESHOOTING
5.1 AT POWER UP At the beginning of an emulation session, on screen of PC must appear the debugger message up to the end of software connection establishment. If a "TIMEOUT" message is encountered, there is a connection problem, which can come from one of these reasons: with ST6HDS2 - ST6 development Tool is not power ON - The parallel line is not well connected or with old main frame: - verify that the delivered cable is actually connected directly to the Main Frame. - and if necessary there is another cable which is either a "wire to wire" connection or an 25 to 9 pin adaptor. - The serial line is not connected the right I/O port of the computer. 5.2 DURING EMULATION: PROBLEM WITH PROGRAM COUNTER In case of "Check Hardware Jumpering" or wrongly executing code in step mode: Most of the time, this problem occurs with HDS1 emulator or with HDS2 plastic BOX up to 4.3 version, it is coming from that the development tool is in RESET state, it can be caused by: - The application where probe is connected is not powered on, then the schmitt trigger on pin Reset is active and causes the RESET - The pin Reset of emulated device is at low level - A probe is connected, but is not powered either by an application or by a voltage on the VCC input. For properly emulating RESET please refer to the following chapter. 5.3 RESET EMULTATION IN REAL TIME With ST6HDS2 new metal box, it is now possible to begin an emulation session even if application is off, it is required particularly in MONITOR or TV applications. With old ST6 HDS1 emulator, or with HDS2 plastic BOX up to 4.3 Version, if the application requires that software must be executed just after power ON, it is mandatory to proceed as follow: - not connect, or remove probe from application. - power ON emulator. - begin emulation session: load program. - then start execution of program in Real Time. - plug the probe in the application (which is off), at this time the ST6 emulator is in reset state, because Reset and VCC pins are at low level. - Power ON the application, then the execution of software will start. 5.4 DISCREPANCIES BETWEEN EMULATOR AND ROM OR EPROM DEVICE When some differences of behavior are appearing between the emulator and the ROM device, in most cases, it comes from using read/modify/write instructions on - registers in which some bits are writable, and some bits readable. For these registers, trouble are caused, because when reading, a random value is read by the CPU, after calculating the mask, this random value is written in the register, changing it unintentionally! The same problem can occur with registers, where some bits have a different function during writing or during reading. Example for Ports: When reading a bit port in input mode, the read value is the level of the pin. When reading a bit port in output, the read value is the value of the corresponding bit in the Data Register. In case of problems check if each used register is correctly accessed. The principle ST6 registers (depending on the family), with which care must be taken, are listed below: - The EEPROM control registers - The two control registers of the 2 SPIs - The Data registers of the 3 Ports A, B and C - Analog to Digital Converter Control Register - The Sync Processor - The 9 PWM D/A control registers - The 14 bits (PWM+BRM) D/A converter - The NMI/PWR/VSYNC Interrupt Register - The Interrupt Option Register - The Program Rom Pagination Registers
17/19
21
ST628X-EMU2 - TROUBLESHOOTING
- The Data RAM/EEPROM Banking Register - The Data ROM window Register To offer more flexibility to the user, all of these registers are readable outside of real time.(undefined bits are read as "0" value). 5.5 AVOID THE MOST FREQUENT PROBLEMS WHEN PROGRAMMING ST6 MICROS! 5.5.1 Execution of Interrupt If interrupt are not executed, in most cases, it comes from: - The core is not in normal mode: after RESET the core is in NMI mode, to enter the normal mode which let execute interrupt, the core must execute a RETI instruction. - The global enable interrupt bit has not been SET, or has been unintentionally cleared, then the IOR register must be checked. The default value to enable Interrupts is 010H.
- The enable interrupt bit of the desired peripheral has not been SET, or has been unintentionally cleared. - The Interrupt Option Register is write only, and has been wrongly written by a read/modify/write instruction, only LDI is permitted. 5.5.2 Execution of WAIT and STOP instructions In WAIT mode, led WAIT is ON, in STOP mode the 2 led WAIT and STOP are ON (on the front panel of the emulator). If STOP or WAIT instructions are not exited, it comes from: - The core is not in normal mode: after RESET the core is in NMI mode, to enter the normal mode which let execute interrupt to exit from these states, the core must execute a RETI instruction. Explanation: the only way to go out of STOP or WAIT state is to have an INTERRUPT or a RESET, it is the reason why, to execute these instructions the interrupt must have been validated.
18/19
22
ST628X-EMU2 - TROUBLESHOOTING
Notes:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics (c)1998 STMicroelectronics - All Rights Reserved. Printed in France by Imprimerie AGL Purchase of I2 C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an I2 C system is granted provided that the system conforms to the I2 C Standard Specification as defined by Philips. STMicroelectronics Group of Companies Australia - Brazil - Canada - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Mexico - Morocco - The Netherlands Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A. http:/ /www.st.com
19/19
23


▲Up To Search▲   

 
Price & Availability of ST628X-EMU2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X